<template>
  <div class="child1">
    <h2>我是Child1组件</h2>
    <h3>我有个玩具：{{ toy }}</h3>
    <GrandChild/>
  </div>
</template>

<script>
  import GrandChild from './GrandChild.vue'
  export default {
    name:'Child1',
    components:{GrandChild},
    data() {
      return {
        toy:'奥特曼'
      }
    },
  }
</script>

<style scoped>
  .child1 {
    margin-top: 10px;
    background-color: skyblue;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 0 10px;
  }
</style>